package com.hwtx.form.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 表单定义
 *
 * @author hwtx
 * @since 2023-12-10
 */
@Data
@TableName("form_def")
@Schema(description = "表单定义")
public class FormDefEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "表单名称")
    private String name;

    @Schema(description = "表单内容")
    private String content;

    @Schema(description = "逻辑删除 1:正常  0:删除")
    private Boolean status;

    @Schema(description = "系统内表单 1:是  0:否")
    private Boolean system;

    @Schema(description = "表单分类")
    private String type;

    @Schema(description = "表单类型（1：表单，2：列表）")
    private Integer classify;

    @Schema(description = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private String createId;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "修改人ID")
    @TableField(fill = FieldFill.UPDATE)
    private String updateId;

    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}

